package cn.com.bluemoon.daps.system.dto;

import cn.com.bluemoon.daps.system.entity.DapSystemDatasource;
import cn.com.bluemoon.daps.common.enums.SystemType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class SysInfoDto {

    @ApiModelProperty(value = "表主键id")
    private String sId;

    @ApiModelProperty(value = "系统描述")
    private String description;

    @ApiModelProperty(value = "系统名称,唯一拘束")
    private String sysName;

    @ApiModelProperty(value = "系统简称")
    private String nameShorter;

    @ApiModelProperty(value = "业务线id")
    private Integer bizLineId;

    @ApiModelProperty(value = "系统描述")
    private SystemType sysType;

    @ApiModelProperty(value = "产品负责人邮箱")
    @NotNull(message = "技术负责人邮箱不能为空")
    @Email(message = "邮箱不正确")
    private String proEmail;

    @ApiModelProperty(value = "产品负责人名称")
    @NotNull(message = "产品负责人姓名不能为空")
    private String proName;

    @ApiModelProperty(value = "产品负责人电话")
    @NotNull(message = "产品负责人电话不能为空")
    private String proTel;

    private String leaderId;

    @ApiModelProperty(value = "技术负责人邮箱")
    @NotNull(message = "技术负责人邮箱不能为空")
    private String tecEmail;

    @ApiModelProperty(value = "技术负责人名称")
    @NotNull(message = "技术负责人名称不能为空")
    private String tecName;

    @ApiModelProperty(value = "技术负责人电话")
    @NotNull(message = "技术负责人电话不能为空")
    private String tecTel;


    @ApiModelProperty(value = "业务负责人邮箱")
    @Email(message = "邮箱不正确")
    private String busEmail;

    @ApiModelProperty(value = "业务负责人名称")
    private String busName;

    @ApiModelProperty(value = "业务负责人电话")
    private String busTel;

    @ApiModelProperty(value = "业务负责人工号")
    private String busId;

    @ApiModelProperty(value = "技术负责人工号")
    private String tecId;

    @ApiModelProperty(value = "产品负责人工号")
    private String proId;

    private List<DapSystemDatasource> sourceList;

}
